package com.yue.redis;

import redis.clients.jedis.Jedis;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/11/24<br/>
 *
 * @author QiuYang
 */
public class RedisClient {
    private static String host = "192.168.91.128";
    private static int port = 6379;
    private static Jedis jedis = new Jedis(host, port);


    public static void main(String[] args) {
        testRedisStart();
        redisString();
    }

    public static void testRedisStart(){
        System.out.println(jedis.ping());
    }

    public static void redisString(){
//        jedis.set("name", "yang");
        System.out.println(jedis.get("name"));
    }
}
